package com.cj.common.utils;

import com.cj.common.vo.SelectOpt;

public class SelectOptUtil {
	public static final String start = "♀";
	public static final String end = "└";
	public static final String middle = "├";
	public static final String erect = "│";

	public static SelectOpt createSelectOpt(Object obj,String keyProperty,String textProperty){
		SelectOpt selectOpt = new SelectOpt();
		selectOpt.setText(ReflectionUtils.getFieldValue(obj, textProperty).toString());
		selectOpt.setValue(ReflectionUtils.getFieldValue(obj, keyProperty).toString());
		return selectOpt;
	}
}
